package com.le.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 主题，在二级板块下
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_topic")
public class Topic extends AbstractTopic implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer topicid;


    private Integer boardid; // 版本号


    @TableField(exist = false) // 新增数据表中没有的属性
    private String uname;
    @TableField(exist = false)
    private Integer total;
    @TableField(exist = false)
    private String head;
    @TableField(exist = false)
    private String regtime;

}
